<#import "/lib/layout.ftl" as l>
<#import "/spring.ftl" as spring>

<@l.header title="new_search.title">
</@l.header>
<@l.body>
	<@l.section title="new_search.title" description="new_search.description">
		<#-- 
		<#list wsParameters as parameter>
			<ul>
				<li>
				<p>${parameter}<br/>
				${wsParametersValues[parameter].name} -- ${wsParametersValues[parameter].description} -- ${wsParametersValues[parameter].type}
				</p>
				<#if wsParametersValues[parameter].values?? && wsParametersValues[parameter].values.value?is_sequence>
					<ul>
					<#list wsParametersValues[parameter].values.value as val_val>
						<li>${val_val.label}--${val_val.value}</li>
					</#list>
					</ul>
				</#if>
				</li>
			</ul>
		</#list>
		-->
		<form>
		<@l.combobox field="cmd.program" label="${programLabel}" options=programValues title="${programTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.matrix" label="${matrixLabel}" options=matrixValues title="${matrixTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.alignments" label="${alignmentsLabel}" options=alignmentsValues title="${alignmentsTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.scores" label="${scoresLabel}" options=scoresValues title="${scoresTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.exp" label="${expLabel}" options=expValues title="${expTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.matchScores" label="${match_scoresLabel}" options=match_scoresValues title="${match_scoresTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.gapOpen" label="${gapopenLabel}" options=gapopenValues title="${gapopenTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.gapExt" label="${gapextLabel}" options=gapextValues title="${gapextTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.filter" label="${filterLabel}" options=filterValues title="${filterTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.align" label="${alignLabel}" options=alignValues title="${alignTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.stype" label="${stypeLabel}" options=stypeValues title="${stypeTitle}" other="style='width: 150px;'"/>
		<@l.combobox field="cmd.database" label="${databaseLabel}" options=databaseValues title="${databaseTitle}" other="style='width: 150px;'"/><br/>
		<@l.checkbox field="cmd.gapAlign" label="${gapalignLabel}" title="${gapalignTitle}" /><br/>
		<@l.textarea field="cmd.sequence" label="${sequenceLabel}" title="${sequenceTitle}" other="style='width: 250px; height: 200px;'"/>

		</form>
	</@l.section>
</@l.body>